include(cmake/ProjectGuard.cmake)
cmake_minimum_required(VERSION 3.24 FATAL_ERROR)

project(
    dzx 
    VERSION 0.1.0 
    LANGUAGES C CXX)

cmake_policy(SET CMP0135 NEW)

#####################################
# compile & link options
#####################################
include(cmake/common.cmake)

#####################################
# third-party packages
#####################################
set(MY_LIBS)
include(FetchContent)

include(cmake/FetchSpdlog.cmake)
include(cmake/FetchSqlite3.cmake)
include(cmake/Fetchlibhv.cmake)

FetchContent_MakeAvailable(${MY_LIBS})

add_subdirectory(examples)
add_subdirectory(hv_demo)